package com.k12.admim.rpc;

import com.k12.admim.model.entity.edu.SchoolInfo;
import com.k12.admim.model.vo.edu.PersonInfoVo;
import com.k12.admim.model.vo.edu.SchoolInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "edu-manage-service")
public interface EduManageFeignClient {

    @GetMapping("edu/getAllSchool")
    List<SchoolInfo> selectSchoolInfoList(SchoolInfoVo schoolInfoVo);

    @PostMapping("edu/saveOneSchool")
    void insertSchoolInfo(SchoolInfoVo schoolInfoVo);

    @GetMapping("edu/deleteSchool")
    Boolean deleteSchoolInfo(@RequestParam("id") Long id, @RequestParam("tenantId") String tenantId);

    @PostMapping("edu/updateOneSchool")
    Boolean updateSchoolInfo(SchoolInfoVo schoolInfoVo);

    @GetMapping("edu/selectAllPerson")
    List<PersonInfoVo> selectAllPerson(PersonInfoVo personInfoVo);
}
